package com.xiaoshuidi.cloud.module.member.controller.admin.invite.vo;


import com.xiaoshuidi.cloud.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

import java.time.LocalDateTime;

/**
 * @description 租客银行卡Form实体
 * @author Leo.Li
 * @date 2023-05-19 17:20:47
 * @version generator
 */
@Data
public class InviteLogPageVo extends PageParam {

	@Schema(description = "开始时间")
	private String startTime;

	@Schema(description = "结束时间")
	private String endTime;

	@Schema(description = "手机号")
	private String phone;

	@Schema(description = "租客id")
	private Long accountId;

	public String getStartTime() {
		if(StringUtils.isNotBlank(startTime)){
			return startTime.concat(" 00:00:00");
		}
		return startTime;
	}

	public String getEndTime() {
		if(StringUtils.isNotBlank(endTime)){
			return endTime.concat(" 23:59:59");
		}
		return endTime;
	}

}
